package com.lyf.boot.base.system.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.lyf.boot.core.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author Luyufan
 * @date 2023/12/6 11:22
 **/
@TableName("t_china_area")
@Data
@EqualsAndHashCode(callSuper = true)
public class ChinaArea extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 8796577602411405332L;

    /**
     * 地区编码
     */
    @TableId(type = IdType.INPUT)
    private String areaCode;

    /**
     * 地区名称
     */
    private String areaName;

    /**
     * 上级地区编码
     */
    private String parentCode;

    /**
     * 地区名称（含所有上级）
     */
    @TableField(insertStrategy = FieldStrategy.ALWAYS, fill = FieldFill.DEFAULT)
    private String fullName;

    /**
     * 级别
     */
    private Integer level;

    /**
     * 备注
     */
    @TableField(insertStrategy = FieldStrategy.ALWAYS, fill = FieldFill.DEFAULT)
    private String remark;
}
